pkgname=attica-qt5
pkgver=5.36.0
pkgrel=1
arch="all"
pkgdesc='Qt5 library that implements the Open Collaboration Services API'
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="qt5-qtbase"
makedepends="extra-cmake-modules doxygen qt5-qttools-dev"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/attica-${pkgver}.tar.xz"
subpackages="$pkgname-doc"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake $srcdir/${pkgname/-qt5/}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF \
		-DBUILD_QCH=ON
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}
sha512sums="1c203942f092e8969ae3868e8ed116261f5423edb31dc248decccbb484914bedc1f40f7792c9c00ec5c8e5e1e5c4affc4a6861acba5ecedef32198605541ae0d  attica-5.36.0.tar.xz"
